<!DOCTYPE html>
<!-- saved from url=(0065)https://xdbj.net.cn/resource/appdownload/advertisement/appwx.html -->
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>欢迎使用交通运输安全生产综合监测平台</title>
  <link rel="stylesheet" href="icon/css/font-awesome.min.css" type="text/css">
</head>

<body>

<style type="text/css">
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html,
  body {
    height: 100%;
    box-sizing: border-box;
  }

  .live_weixin {
    max-width: 100%;
    height: auto;
  }

  ._wz_foot {
    position: absolute;
    bottom: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  ._wz_foot div {
    letter-spacing: 1px;
    text-align: center;
    font-size: 12px;
    line-height: 50px;
    color: #fff;
  }
</style>

<div style="width: 100%;height: 100%;background: url('img/icon_bj.png');background-size: 100% 100%;padding: 100px 0 0 0;">
  <img src="img/icon_wen1.png" style="width: 60%;margin: auto;display: block;" />
  <div>
    <div style="color: #fff;text-align: center;padding: 80px 0 0 0;line-height: 60px;font-size: 16px;letter-spacing: 1px;">运输企业下载</div>
    <dl style="float: left;width: 100%;color: #fff;">
      <dd style="width: 50%;float: left;text-align: right;padding: 0 20px 0 0;">
        <div style="display: inline-block;" onclick="aqApp()">
          <div style="width: 70px;height: 70px;border-radius: 50%;border: 1px solid #fff;display: flex;flex-direction: column;padding: 10px 0;">
            <i class="fa fa-android" style="display: block;text-align: center;font-size: 24px;height: 40px;line-height: 30px;"></i>
            <div style="text-align: center;font-size: 14px;height: 30px;line-height: 20px;">安卓</div>
          </div>
          <div style="text-align: center;line-height: 40px;font-size: 14px;">APP下载</div>
        </div>
      </dd>
      <dd style="width: 50%;float: left;text-align: left;padding: 0 0 0 20px;">
        <div style="display: inline-block;" onclick="aqIos()">
          <div style="width: 70px;height: 70px;border-radius: 50%;border: 1px solid #fff;display: flex;flex-direction: column;padding: 10px 0;">
            <i class="fa fa-apple" style="display: block;text-align: center;font-size: 24px;height: 40px;line-height: 30px;"></i>
            <div style="text-align: center;font-size: 14px;height: 30px;line-height: 20px;">苹果</div>
          </div>
          <div style="text-align: center;line-height: 40px;font-size: 14px;">IOS下载</div>
        </div>
      </dd>
    </dl>
  </div>
  <!--  https://apps.apple.com/cn/app/365%E5%AE%89%E8%BF%90%E9%80%9A/id1507944025-->
  <!--  <button onclick="xzApp()" type="button">信达宝驾安卓下载</button>-->
  <!--  <button onclick="xzIos()" type="button">信达宝驾IOS下载</button>-->
  <!--  <button onclick="aqApp()" type="button">365安运通安卓下载</button>-->
</div>
<div class="_wz_foot">
  <div>技术支持：河北信达交通科技有限公司</div>
</div>
<script type="text/javascript">
  function is_weixin() {
    var type = false;
    var ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      type = true;
    }
    // if(ua.match(/QQ/i) == "qq"){
    //   type = true;
    // }
    return type;
  }

  var isWeixin = is_weixin();
  var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;


  function loadHtml() {
    var div = document.createElement('div');
    div.id = 'weixin-tip';
    div.innerHTML = '<p><img src="" class="live_weixin" alt="微信打开"/></p>';
    document.body.appendChild(div);
  }

  function loadStyleText(cssText) {
    var style = document.createElement('style');
    style.rel = 'stylesheet';
    style.type = 'text/css';
    try {
      style.appendChild(document.createTextNode(cssText));
    } catch (e) {
      style.styleSheet.cssText = cssText; //ie9以下
    }
    var head = document.getElementsByTagName("head")[0]; //head标签之间加上style样式
    head.appendChild(style);
  }

  var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
  if (isWeixin) {
    loadHtml();
    loadStyleText(cssText);
  }

  function xzApp() {
    if (!isWeixin) {
      window.location.href = "http://api.xdbj.net.cn:9446/media/apk/XDBJ.apk";
    }

  }
  function xzIos(){
    if (!isWeixin) {
      window.location.href = "https://apps.apple.com/cn/app/%E4%BF%A1%E8%BE%BE%E5%AE%9D%E9%A9%BE/id1485207678?tdsourcetag=s_pctim_aiomsg";
    }
  }


  function aqApp() {
    if (!isWeixin) {
      window.location.href = "http://api.xdbj.net.cn:9446/media/apk/QYGL.apk";
    }
  }

  function aqIos(){
    if (!isWeixin) {
      window.location.href = "https://apps.apple.com/cn/app/365%E5%AE%89%E8%BF%90%E9%80%9A/id1507944025";
    }
  }
</script>


</body>
</html>
